<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
        div {
            width: 300px;
            height: 80;
            border: 1px solid black;
        }

        #img1 {
            text-align: left;
        }

        #img2 {
            text-align: center;
        }

        #img3 {
            text-align: right;
        }
    </style>
</head>

<body>
    <div id="img1">
        <img src="../从0到1css/css属性/img/girl.gif" alt="">
    </div>
    <div id="img2">
        <img src="../从0到1css/css属性/img/girl.gif" alt="">
    </div>
    <div id="img3">
        <img src="../从0到1css/css属性/img/girl.gif" alt="">
    </div>
</body>

</html>